CC = gcc

TARGETS += loudou
TARGETS += lu_triangle
TARGETS += ru_triangle
TARGETS += lb_triangle
TARGETS += rb_triangle
TARGETS += iso_triangle
TARGETS += iso_triangle_rev
TARGETS += lb_parall
TARGETS += lu_parall
TARGETS += rhom
TARGETS += lb_parall_h
TARGETS += lu_parall_h

rhom: rhom.c
	$(CC) $< -o $@
lu_parall_h: lu_parall_h.c
	$(CC) $< -o $@
lu_parall: lu_parall.c
	$(CC) $< -o $@
lb_parall: lb_parall.c
	$(CC) $< -o $@
lb_parall_h: lb_parall_h.c
	$(CC) $< -o $@
iso_triangle_rev: iso_triangle_rev.c
	$(CC) $< -o $@
iso_triangle: iso_triangle.c 
	$(CC) $< -o $@
loudou: loudou.c 
	$(CC) $< -o $@
lu_triangle: lu_triangle.c 
	$(CC) $< -o $@
ru_triangle: ru_triangle.c 
	$(CC) $< -o $@
lb_triangle: lb_triangle.c 
	$(CC) $< -o $@
rb_triangle: rb_triangle.c 
	$(CC) $< -o $@
.PHONY: clean

all: ${TARGETS}

clean:
	$(RM) ${TARGETS}

